﻿Imports System.Xml.Serialization

'http://www.blackwasp.co.uk/XMLArrays.aspx -- serializing and deserializing
<Serializable(), XmlRoot("mockup")> _
Public Class mockup

    Protected Sub New()

    End Sub

    Private _measuredH As Integer
    <XmlAttribute("measuredH")> _
    Public Overridable Property measuredH() As Integer
        Get
            Return _measuredH
        End Get
        Set(ByVal value As Integer)
            _measuredH = value
        End Set
    End Property

    Private _measuredW As Integer
    <XmlAttribute("measuredW")> _
    Public Overridable Property measuredW() As Integer
        Get
            Return _measuredW
        End Get
        Set(ByVal value As Integer)
            _measuredW = value
        End Set
    End Property

    Private _controls As control()
    <XmlArray(ElementName:="controls")> _
    Public Overridable Property Controls() As control()
        Get
            Return _controls
        End Get
        Set(ByVal value As control())
            _controls = value
        End Set
    End Property

End Class
